﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace Medhurst.Unity.Examples.Settings
{
    /// <summary>
    /// Fetch settings from the appSettings section of your app.config file.
    /// </summary>
    public class AppSettings : ISettings
    {
        [DebuggerStepThrough]
        public string GetValue(string settingKey, string defaultValue = null)
        {
            return ConfigurationManager.AppSettings[settingKey] ?? defaultValue;
        }
    }
}
